
import Factory.AFactory;
import Factory.BYDFactory;
import Factory.BenChiFactory;

public class App {
    public static void main(String[] args) throws Exception {
        AFactory factory = new BYDFactory();
        System.out.println(factory.CtreatLunZi().ShowInfo());
        System.out.println(factory.CtreatProduct().ShowMyName());
        factory = new BenChiFactory();
        System.out.println(factory.CtreatLunZi().ShowInfo());
        System.out.println(factory.CtreatProduct().ShowMyName());

    }
}
